/*
 * @Author: lizhijie429
 * @Date: 2021-08-24 17:28:19
 * @LastEditors: lizhijie429
 * @LastEditTime: 2021-08-25 17:09:03
 * @Description:
 */

//引入createStore，专门用于创建redux中最为核心的store对象
import { createStore, applyMiddleware } from "redux";

//引入redux-thunk，用于支持异步action
import thunk from "redux-thunk";
//引入redux-devtools-extension
import { composeWithDevTools } from "redux-devtools-extension";
//引入汇总之后的reducer
import reducer from "./reducers";

export default createStore(reducer, composeWithDevTools(applyMiddleware(thunk)));
